package org.lex.swing.prefs;

import java.awt.Component;

import javax.swing.event.ChangeListener;

public class CategoryDecorator implements Category {
	private Category decoratee = null;

	public CategoryDecorator(Category decoratee) {
		this.decoratee = decoratee;
	}

	public String getTitle() {
		return this.decoratee.getTitle();
	}

	public Component getCategoryComponent() {
		return decoratee.getCategoryComponent();
	}

	public void loadConfiguration() {
		this.decoratee.loadConfiguration();
	}

	public void saveConfiguration() {
		this.decoratee.saveConfiguration();
	}

	public boolean hasContentChanged() {
		return this.decoratee.hasContentChanged();
	}

	public void addContentChangeListener(ChangeListener l) {
		decoratee.addContentChangeListener(l);
	}

	public void removeContentChangeListener(ChangeListener l) {
		decoratee.removeContentChangeListener(l);
	}

	public boolean isSupported(Action action) {
		return decoratee.isSupported(action);
	}

	public void performAction(Action action) {
		decoratee.performAction(action);
	}

	protected Category getDecoratee() {
		return this.decoratee;
	}
}
